/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :boot-parent
 * File Name: org.easytouseit.thymeleaf.controller
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-08-16 15:41
 * History:  
 * 1. Date: 2018-08-16
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouseit.thymeleaf.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * html页面
 *
 * @author guojm
 * @version V1.0
 * @date 2018-08-16 下午 15:41
 */
@Slf4j
@Controller
public class HtmlController {

    @GetMapping("/hello")
    private String hello(Model model){
        model.addAttribute("name", "老猫码坊");
        return "hello";
    }
}
